import log_util
import grass
"""
定义牛的对象
"""


class Cow:
    _cow_age = 0  # 小牛的年龄
    _cow_name = None  # 小牛的名字
    _cow_sex = None  # 小牛的性别
    _cow_no = None  # 小牛的编号，不能重复

    def __init__(self, cow_no, cow_name, cow_sex):
        self._cow_no = cow_no
        self._cow_name = cow_name
        self._cow_sex = cow_sex

    # 以下是属性的getter和setter方法
    @property
    def cow_no(self):
        return self._cow_no

    def get_cow_age(self):
        return self._cow_age

    def set_cow_age(self, cow_age):
        self._cow_age = cow_age

    def get_cow_name(self):
        return self._cow_name

    def set_cow_name(self, cow_name):
        self._cow_name = cow_name

    def set_cow_sex(self, cow_sex):
        self._cow_sex = cow_sex

    def get_cow_sex(self):
        return self._cow_sex

